import { postAxios, getAxios, postDownloadAxios } from '@/lib/http';

export const engineReverseApi = {
    // 添加倒拖特性曲线 @author wuhq
    addEngineReverse: (data) => {
        return postAxios('/engineReverse/add', data);
    },
    // 分页查询倒拖特性曲线 @author wuhq
    queryEngineReverse: (data) => {
        return postAxios('/engineReverse/page/query', data);
    },

  getByEngineId: (data) => {
        return getAxios(`/engineReverse/getByEngineId/${data}`);
    },
    // 批量删除倒拖特性曲线 @author wuhq
    batchDeleteEngineReverse: (idList) => {
        return postAxios('/engineReverse/deleteByIds', idList);
    },
    // 修改倒拖特性曲线  @author wuhq
    updateEngineReverse: (data) => {
        return postAxios('/engineReverse/update',data);
    },
    // 导出全部  @author wuhq
    exportAll:(data)=>{
        return postDownloadAxios('/engineReverse/export/all',data);
    },
    // 批量导出  @author wuhq
    batchExport: (idList) => {
        return postDownloadAxios('/engineReverse/export/batch', idList);
    },
};
